﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace RecipeManager
{
    public class Category : ICloneable
    {
        public Category(string name)
        {
            Name = name;
        }

        public Category()
        {

        }

        [XmlAttribute]
        public string Name { get; set; }
        [XmlAttribute]
        public string AdditionalInfo { get; set; }

        #region ICloneable Member

        public object Clone()
        {
            Category result = new Category();

            result.Name = Name;
            result.AdditionalInfo = AdditionalInfo;

            return result;
        }

        #endregion
    }
}
